Index: /CKEditor/trunk/_source/plugins/styles/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/styles/plugin.js	(revision 3923)
+++ /CKEditor/trunk/_source/plugins/styles/plugin.js	(revision 3924)
@@ -802,7 +802,7 @@
 							return '&nbsp;' ;
 						else if ( offset == 0 )		// beginning of block
-							return CKEDITOR.tools.replace( '&nbsp;', match.length - 1 ) + ' ';
+							return CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ) + ' ';
 						else				// end of block
-							return ' ' + CKEDITOR.tools.replace( '&nbsp;', match.length - 1 );
+							return ' ' + CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 );
 					} ) ;
 
@@ -813,5 +813,5 @@
 					function ( match )
 					{
-						return CKEDITOR.tools.replace( '&nbsp;', match.length - 1 ) + ' ' ;
+						return CKEDITOR.tools.repeat( '&nbsp;', match.length - 1 ) + ' ' ;
 					} ) ;
 
Index: /CKEditor/trunk/_source/tests/core/tools.html
===================================================================
--- /CKEditor/trunk/_source/tests/core/tools.html	(revision 3923)
+++ /CKEditor/trunk/_source/tests/core/tools.html	(revision 3924)
@@ -155,7 +155,7 @@
 		},
 
-		test_multiple : function()
+		test_repeat : function()
 		{
-			assert.areSame( '&nbsp;&nbsp;&nbsp;', CKEDITOR.tools.replace( '&nbsp;', 3 ) );
+			assert.areSame( '&nbsp;&nbsp;&nbsp;', CKEDITOR.tools.repeat( '&nbsp;', 3 ) );
 		},
 
