diff --git a/googtube.module b/googtube.module
index 687773f..0ae2b86 100644
--- a/googtube.module
+++ b/googtube.module
@@ -46,7 +46,7 @@ function _googtube_process($text = '', $format = -1) {
   //vimeo video regex
   $text = preg_replace_callback('#(((http://)?)|(^./))(((www.)?)|(^./))vimeo\.com/([0-9]+)(?![^<]*</a>)#i', 'googtube_vimeo', $text);
 
-  $text = substr($text, 1, -1);      
+  $text = substr($text, 1, -1);
   return $text;
 }
 
@@ -63,15 +63,13 @@ function googtube_google($match) {
   parse_str($parsed_url['query'], $parsed_query);
   $googlevideo_id = $parsed_query['docid'];
   isset($parsed_query['hl']) ? $googlevideo_hl = '&hl=' . $parsed_query['hl'] : $googlevideo_hl = '';
-  return '<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=' . $googlevideo_id . $googlevideo_hl . '" flashvars=""> </embed>';
+  return '<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=' . $googlevideo_id . $googlevideo_hl . '" flashvars=""></embed>';
 }
 
 function googtube_vimeo($match) {
   $parsed_url = parse_url(check_url($match[0]));
-  $vimeo_id = ltrim($parsed_url[path],"/");
+  $vimeo_id = ltrim($parsed_url['path'], "/");
   return '<object width="425" height="350"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=' . $vimeo_id . '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=' . $vimeo_id . '&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="350"></embed></object>';
 }
 
-
-
 ?>
