Remove whitespaces from component names

Replaced whitespaces with underscores.
Added unit test for asserting that component name
does not have spaces.

Fixes bug 1329927

Change-Id: I7ba665f2e2fc722c590e2073e8878969f806fc09
Merge "Remove whitespaces from component names"